Extrair alcatrão
TAR files are most commonly used for bundling and compressing multiple files and directories into a single archive. However, extracting them could be troublesome at times, as they are used in conjunction with GZIP and BZIP2. However, with the versatility of IronZIP, we can simply call the IronTarArchive class to extract the contents of the TAR for the last layer and then further extract it in the second format, all within a single library.
- usando IronZIP;
- `IronTarArchive.ExtractArchiveToDirectory("output.tar", "extracted");`
Extraindo arquivo TAR
Para começar, precisamos incluir o namespace IronZIP em nosso projeto, o que nos dará acesso às suas funcionalidades. We can then use the IronTarArchive class to extract the contents of the TAR file with the method ExtractArchiveToDirectory.
Esta função foi projetada para descompactar o conteúdo de um arquivo TAR em um diretório especificado. O parâmetro inicial deve ser o caminho completo para o arquivo TAR que você deseja extrair. O segundo parâmetro indica a pasta de destino onde os arquivos descompactados serão armazenados.

